package cn.sunlelin.educationserver.mapper;

import cn.sunlelin.educationserver.entity.Task;

import java.util.List;
import java.util.Map;

public interface TaskMapper {
    public void createTask(Task task);
    public void updateTask(Task task);
    public Task selectTaskById(Integer taskId);
    public List<Map<String,Object>> selectTaskByCourseId(Integer courseId);
    public List<Task> selectTaskByChapterId(Integer chapterId);
    public void deleteTask(Task task);
}
